<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
    <title>{$t['title']} - {:set('title')} </title>
	<meta name="keywords" content="{$t['keywords']}">
	<meta name="description" content="{$t['description']}">
    {include file="header"}
    <link rel="stylesheet" href="*ADMIN*/wangEditor/css/wangEditor.min.css">
    <script type="text/javascript" src="*ADMIN*/wangEditor/js/wangEditor.min.js"></script>
</head>
<body>
<section class="aui-flexView">
	<header class="aui-navBar aui-navBar-fixed">
		<a href="{:url('index/index/cate',array('alias'=>$cate.alias))}" class="aui-navBar-item left">
			<i class="iconfont">&#xe61a;</i>返回
		</a>
		<div class="aui-center">
			<!--<div class="title">-->
			<!--    <marquee scrollamount="5">{$t['title']}</marquee>-->
			<!--</div>-->
		</div>
		{if user('userid')}
		<a href="{:url('index/user/set')}" class="aui-navBar-item">
			<i class="iconfont">&#xe697;</i>
		</a>
		{else/}
		<a href="javascript:;" class="aui-navBar-item yemianf" w="100%" title="注册登录" tblr="b" h="80%" anim="2" url="{:url('index/user/login')}">
			<i class="iconfont">&#xe697;</i>
		</a>
		{/if}
	</header>
	<section class="aui-scrollView">
        <div class="newsArticle">
            <div class="n_article_tit">
                <h1>{$t['title']}</h1>
                <div class="art_remark">
                    <p>
                        <span><i class="iconfont">&#xe612;</i>{$t.time|times}</span>
                        <span><i class="iconfont">&#xe697;</i><a href="{:url('index/user/uid',array('id'=>$t.uid))}" target="_blank">{:fun_u($t.uid, 'username')}</a></span>
       
                        <span><i class="iconfont">&#xe614;</i>{$t['view']}<span>
                    </p>
                </div>
                <div class="content_p">
                    <div class="wangEditor-container" style="border: 0px solid #e6e6e6;margin-bottom: 30px">
        		        <div class="wangEditor-txt" style="padding: 0;">
                            {if $fufei==1}
                            <a href="javascript:;" class="del_t fufei" name="确定要付费{$t['jifen']}{:set('jifen',2)}查看该内容吗？下次无需付费" url="{:url('index/api/fufei',array('id'=>$t.id,'m'=>$t.m))}"><i class="iconfont">&#xe605;</i> 付费{$t['jifen']}{:set('jifen',2)}查看隐藏内容</a>
                            {else/}
                            {$t.content}
                            {/if}
                        </div>
                    </div>
                </div>
            </div>
        </div>
 
        <div class="comment comment-a ping" style="display: none;">
            <div class="c-title fn-clear">
                <h4>评论<small>文明上网理性发言</small></h4>
                <a href="javascript:;" class="tnum">共{$t['pinglun']}条评论</a>
            </div>
            <form class="layui-form layui-form-pane form1" url="{:url('index/api/comment_add')}" t_url="javascript:parent.location.reload();" id="commentform">
                <input type="hidden" name="id" value="{$t.id}">
                <input type="hidden" name="m" value="{$t.m}">
                <input type="hidden" class="huifuS" name="tid" value="0">
                <div class="c-area">
                    <textarea id="textarea" lay-verify="required" name="content" class="textarea" placeholder="说出您的看法...."></textarea>
                    <div class="c-sub fn-clear">	<a href="javascript:;" lay-submit lay-filter="cms1" class="subtn login">评论</a>
                    </div>
                </div>
            </form>
        </div>
        <div class="comment">
            <div class="c-content">
                <ul class="c-nav fn-clear">
                    <li>全部评论</li>
                </ul>
                <ul class="c-list" id="commentList">
                    {volist name=":fun_s('comment',array('open'=>1,'tid'=>0,'fid'=>$t['id'],'m'=>$t.m),'id desc',10,false,0)" id="vo" empty="
                    <div class='empty' align='center'>
                        <p>你来消灭0评论</p>
                    </div>"}
                    <li class="fn-clear">
                        <img src="{:fun_sc_p('member', array('userid'=>$vo['uid']), 'userhead')}" alt="{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}">
                        <div class="c-body">
                            <div class="c-header"> <a href="{:url('index/user/uid',array('id'=>$vo.uid))}" target="_blank">{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}</a>  <span>{$vo.time|times}</span> 
                            </div>
                            <p>{$vo.content|htmlspecialchars_decode}</p>
                            <div class="c-footer"> 
                                <a href="javascript:;" class="reply huifu" data="{:url('index/api/comment_add',array('id'=>$t.id,'tid'=>$vo.id,'m'=>$t.m))}" href="javascript:;" name="@{:fun_u($vo.uid, 'username')}"><i class="iconfont">&#xe61e;</i>回复</a> 
                            </div>
                        </div>
                    </li>
                    {volist name=":fun_s('comment',array('open'=>1,'tid'=>$vo.id,'fid'=>$t['id'],'m'=>$t.m),'id desc',10,false,0)" id="v"}
                    <li class="fn-clear">
                        <img src="{:fun_sc_p('member', array('userid'=>$v['uid']), 'userhead')}" alt="{:fun_sc_p('member', array('userid'=>$v['uid']), 'username')}">
                        <div class="c-body">
                            <div class="c-header"> 
                                <a href="{:url('index/user/uid',array('id'=>$vo.uid))}" target="_blank">{:fun_sc_p('member', array('userid'=>$v['uid']), 'username')}</a>  @ 
                                <a href="{:url('index/user/uid',array('id'=>$vo.uid))}" target="_blank">{:fun_sc_p('member', array('userid'=>$vo['uid']), 'username')}</a>
                            <span>{$v.time|times}</span> 
                            </div>
                            <p>{$v.content|htmlspecialchars_decode}</p>
                        </div>
                        <div class="c-footer"> </div>
                    </li>
                    {/volist}
                    {/volist}
                </ul>
                {:fun_s('comment',array('tid'=>0,'open'=>1,'fid'=>$t.id,'m'=>$t.m),'id desc',10,0)->render()}
            </div>
        </div>
	</section>
	<footer class="aui-footer aui-footer-fixed">
	    <div class="pinview yemian" w="100%" tblr="b" h="" anim="2" css="ping" style="margin-right: 30px;">
	        <div class="aui-search-box">
	            <i class="iconfont ico">&#xe695;</i>
	            <span class="ico-fixed">{$t['pinglun']}</span>
	            <input type="text" placeholder="留下您的看法" disabled="disabled">
			</div>
	    </div>
	    <a href="javascript:;" class="aui-tabBar-item dianzan" zan="{$t['zan']+1}" url="{:url('index/api/zan',array('id'=>$t.id,'m'=>$t.m))}">
            <span class="aui-tabBar-item-icon">
                <i class="iconfont">&#xe610;</i>
            </span>
			<span class="aui-tabBar-item-text">点赞(<span class="dianzans"> {$t['zan']}</span> )</span>
		</a>
		<a href="javascript:;" class="aui-tabBar-item shoucang" url="{:url('index/api/shoucang',array('id'=>$t.id,'m'=>$t.m))}">
            <span class="aui-tabBar-item-icon">
                <i class="iconfont">&#xe60f;</i>
            </span>
			<span class="aui-tabBar-item-text shoucangy">{if fun_st('shoucang',array('m'=>$t.m,'tid'=>$t.id,'uid'=>user('userid')))>0}收藏成功{else/}收藏{/if}</span>
		</a>
	</footer>
</section>
</body>
</html>
